
<template>
  <!-- 网站首页 -->
  <div>
    <index-header></index-header>
    <index-item v-for="(item,index) in list" :key="index" :title="item.typeName" :type-id="item.id" ></index-item>
<!--     <index-item title="电视剧"></index-item>
    <index-item title="动漫"></index-item>
    <index-item title="娱乐"></index-item> -->
  </div>
</template>

<script>
import indexHeader from "../components/index-header.vue";
import indexItem from "../components/index-item.vue";
export default {
  name: "my-index",
  data: function() {
    return {
      list: []
    };
  },
  mounted:function(){
    this.getType();
  },
  methods: {
    getType() {
      this.axios.post("videoType/type1List").then(res => {
        this.list = res.data.page.list;
      });
    }
  },
  components: {
    indexHeader,
    indexItem
  }
};
</script>

<style scoped>
</style>